<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Advisor.ascx.vb" Inherits="WebForms_Advisor" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


<div id="divMain" runat="server">
    <script type="text/javascript" language="javascript" src="../scripts/numFormat.js"></script>
    <script type="text/javascript" language="javascript" src="../scripts/dateFunc.js"></script>
    
    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr><td style="font-size: 3px;height: 5px;"></td></tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr>
        <td id="Name_td" runat="server" align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial;"></td>
        <td></td>
        </tr>
        <tr>
        <td  id="Policy_td" runat="server" align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial;">
        </td>
        <td></td>
        </tr>
        <tr>
        <td id="Provider_td" runat="server" align="left" style="font-weight: bold; font-size: 10pt; font-family: Arial;">
        </td>
        <td align="right" style="font-weight: bold; font-size: 10pt; font-family: Arial; color: #d63007;">
            Add New Advisor
        </td>
        </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="800">
        <tr><td style="font-size: 3px; background-color: #105BA4; height: 3px;"></td></tr>
    </table>

    <br />

    <table border="0" cellpadding="0" cellspacing="0" width="800" style="background-color: #f2f3f5">
               
    <tr><td style="width: 800px">

        <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 95px;" align="left">
                    &nbsp;Advisor:</td>
                <td style="width: 187px" align="left">
                    <asp:DropDownList ID="Advisor_cmb" runat="server" Width="184px">
                    </asp:DropDownList></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 94px;" align="left">
                    &nbsp;Start Date:</td>
                <td align="left" style="width: 100px">
                    <asp:TextBox ID="StartDate_txt" runat="server" Width="104px"></asp:TextBox><br />
                    <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Overline="False"
                        Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
                <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left">
                    &nbsp;End Date:</td>
                <td align="left" style="width: 75px">
                    <asp:TextBox ID="EndDate_txt" runat="server" Width="104px"></asp:TextBox><br />
                    <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Overline="False"
                        Font-Size="7pt" ForeColor="Gray" Text="dd/mm/yyyy" Width="64px"></asp:Label></td>
            </tr>
            <tr>
                <td style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left" valign="top">&nbsp;Notes:</td>
                <td colspan="5" style="font-size: 10pt; font-family: Verdana; width: 100px;" align="left">
                    <asp:TextBox ID="Notes_txt" runat="server" TextMode="MultiLine" Height="64px" Width="528px"></asp:TextBox>
                </td>
            </tr>
        </table>
            
    </td></tr>

    <tr><td style="width: 800px; height: 54px;">

        <table border="0" cellpadding="0" cellspacing="0" width="800" style="height: 35px">
            <tr>
                <td style="width: 400px; height: 24px;"></td>
                <td style="height: 24px">
                    <asp:Button ID="Save_btn" runat="server" Text="Save" BackColor="Gainsboro" Font-Names="Verdana" Width="104px" />
                </td>
                <td style="height: 24px">
                    <asp:Button ID="Cancel_btn" runat="server" Text="Back" BackColor="Gainsboro" Font-Names="Verdana" Width="112px" CausesValidation="False" />
                </td>
            </tr>
        </table>
            
    </td></tr>

    </table>
    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="StartDate_txt">
    </ajaxToolkit:MaskedEditExtender>
    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server" Mask="99/99/9999"
        MaskType="Date" TargetControlID="EndDate_txt">
    </ajaxToolkit:MaskedEditExtender>
    <asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="Advisor_cmb"
        ErrorMessage="Advisor Required" ForeColor="White" Text="."></asp:RequiredFieldValidator>
    <asp:CustomValidator ID="dtv1" runat="server" ClientValidationFunction="valDate"
        ControlToValidate="StartDate_txt" ErrorMessage="Invalid Start Date" ForeColor="White"
        ValidateEmptyText="True">.</asp:CustomValidator>
    <asp:CustomValidator ID="dtv4" runat="server" ClientValidationFunction="valDate"
        ControlToValidate="EndDate_txt" ErrorMessage="Invalid End Date" ForeColor="White">.</asp:CustomValidator>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" />
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"
        TargetControlID="rfv1">
    </ajaxToolkit:ValidatorCalloutExtender>
    <ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
        TargetControlID="dtv1">
    </ajaxToolkit:ValidatorCalloutExtender><ajaxToolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server"
        TargetControlID="dtv4">
    </ajaxToolkit:ValidatorCalloutExtender>
</div>